const crypto = require("crypto");

// DES 加密
export const   desEncrypt = (message, key)=> {
    const cipher = crypto.createCipheriv("des-cbc", key, key);
    let crypted = cipher.update(message, "utf8", "base64");
    crypted += cipher.final("base64");
    return crypted;
};
